<script src="../media/system/js/mootools-core.js" type="text/javascript"></script>
<script src="../media/system/js/core.js" type="text/javascript"></script>
<!--<form action="index.php?top=page&option=com_frclub" method="post" name="adminForm" id="adminForm" class="adminform">-->
<form action="index.php?top=page&option=com_frclub" method="post" name="adminFormSearch" id="adminFormSearch">
<!-- LEFT -->
 <?php echo $this->loadTemplate('search','default') ?>
 <input type="hidden" name="task" value="search" />
 </form>
<form action="index.php?top=page&option=com_frclub&task=activitive" method="post" name="adminForm" id="adminForm">
 <!-- END LEFT -->
 
 <!-- CONTENT -->
 <div id="jm-content">
    <div class="cc title">
        <div class="id"><?php echo $this->info_ocba->OCBA_CODE; ?></div>
        <div class="cc-title">
            <p class="top"><?php echo $this->info_ocba->OCBA_KANA; ?></p>
            <p class="bot"><?php echo $this->info_ocba->OCBA_NAME; ?><span class="float-right">【<?php echo $this->info_ocba->OCBA_SHOR; ?>】</span></p>
        </div>
    </div>
    <div class="clearfix"></div>
    <div class="menu-cc">
        <ul id="nav">
        <?php 
            foreach(bgData::getMenuDetailClub() as $key=>$item){
                $acctive = 'normal';
                if(JRequest::getVar('task') == $key){
                    $acctive = 'current';
                }
         ?>
            <li class="<?php echo $acctive; ?>"><a href="index.php?top=page&option=com_frclub&task=<?php echo $key; ?>&id=<?php echo $this->info_ocba->OCBA_CODE; ?>"><?php echo $item; ?></a></li>
          <?php } ?>
            
        </ul>
    </div>
   <div class="content">
   <h3 class="h_title">活動情報一覧</h3>
   <!--<label class="h3_simple" >活動情報一覧</label>-->
         <table style="width: 100%;" >
           <!-- <tfoot>
    			<tr>
    				<td>
    				    <?php //echo $this->pagination->getListFooter(); ?>	
                    </td>
    			</tr>
    		</tfoot>
            -->
            <?php
                $rows=$this->rows;
                if ($rows !=null)
                {
                    foreach($rows as $row)
                {
            ?>
            <tr>
                <td>
                    <div class="cc">
                    <h2 style="position: relative;">
                        <span class="id-cc"><?php echo $row->ACTT_NAME; ?></span>
                        <span style="float: right;position:absolute;right:5px;top:1px;">
                            <button style="margin-top: 1px;" href="index.php?top=page&option=com_fractivitive&task=detail&cid=<?php echo $row->ACTT_CODE; ?>">詳細</button>
                        </span>
                        <span style="float: right;position:absolute;right:65px;top:7px;" class="float-right">
                            <?php $a= $row->ACTT_RECOMMENDED_DEGREE;
                                
                                for($i=1;$i<=$a;$i++)
                                {
                                    echo '<img height="14" src="components/com_fractivitive/public/images/hoshi.gif" width="14" />';
                                    //echo $i;
                                } 
                            ?>
                            
                           
                </span>
                </h2>
            
            <table cellspacing="0" cellpadding="0" width="100%" border=0>
                <tbody>
                    <tr>
                        <td class="td_large" colspan="3"><?php echo $row->ACTT_REMARKS; ?></td>                                      
                    </tr>
                    <tr>
                        <td colspan="4"><hr /></td>
                    </tr>
                    <tr>
                        <td class="cols-1">【センター・クラブ名】</td>
                        <td class="cols-2"><?php echo $row->OCBA_NAME; ?></td>
                        <td class="cols-3 red">
                            <?php
                                $reg=$row->ACTT_RECR;
                                if ($reg==1)
                                    echo '募集開始前';
                                else if ($reg==2)
                                    echo ' 募集中';
                                else if ($reg==3)
                                    echo '募集終了';
                            ?>
                        </td>
                    </tr>
                    <tr>
                        <td class="cols-1">【期間】</td>
                        <td class="cols-2">
                        <?php if($row->ACTT_PERIOD_START!='0000-00-00') { echo HelperBG::F_GetDate_JP($row->ACTT_PERIOD_START);echo ' ～ ';} ?><?php if($row->ACTT_PERIOD_FINISH!='0000-00-00') echo HelperBG::F_GetDate_JP($row->ACTT_PERIOD_FINISH); ?></td>                          
                            </td>
                        <td class="cols-3">【人数】<?php if($row->ACTT_NUMBER_OF_PARTICIPANTS!='null') echo $row->ACTT_NUMBER_OF_PARTICIPANTS.'人'; ?></td>
                    </tr>
                    <tr>
                        <td class="cols-1">【ジャンル】</td>
                        <td class="cols-2">体育館</td>
                        <td class="cols-3"></td>
                    </tr>
                </tbody>
            </table>
        </div>
        <?php
        }
        }
        else
            echo '<div class="center">
                    データは見つかりませんでした
                  </div>';
        ?>
        
                </td>
            </tr>
        </table>
        <input type="hidden" name="task" value=""/>
        <input type="hidden" name="boxchecked" value="0"/> 
        </div>                                
    
 </div>
 </form>
 <!-- END CONTENT -->
  <script>
 Joomla.submitbutton = function(task){
    if(task == 'search'){
        Joomla.submitform(task, document.getElementById('adminFormSearch'));
        return false;
    }
 }
 </script>
                  
                           